<?
$tmppath="../../";
REQUIRE ($tmppath."/include/login.php");
REQUIRE ($tmppath."/$templates/up.php");

REQUIRE("../fonction.php");
REQUIRE($tmppath."protect/connect_jeu.php");

IF ($_USER_PERSO==0){EXIT;}

//ECHO "$_SESSION_VAR_SWITCH - $p - $_SESSION_VAR_PAGE;";




//Switch des pages.
//-----------------
SWITCH ($p){

         CASE 'vente_u': REQUIRE("include/unite/marchand_unite.php");  mysql_close(); EXIT;
          CASE 'vente_vv': REQUIRE("include/unite/visionner_vente.php");  mysql_close(); EXIT;
           CASE 'vente_va': REQUIRE("include/unite/visionner_achat.php");  mysql_close(); EXIT;
      
      
//------------------------------------------------------------------------------Accueil
      CASE 'accueil': REQUIRE("marchand_accueil.php");  EXIT;
      CASE 'test': REQUIRE("include/test_march.php");  EXIT;

}//fin du switch SWITCH ($p){
     //                 echo $_SESSION_VAR_PAGE;

//Switch des TESTs.
//-----------------
SWITCH ($_SESSION_VAR_PAGE){
       CASE "test": REQUIRE("include/test_march.php"); EXIT;

}//fin du switch PAGE ($p){


?>
